<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<script type="text/javascript">
	function query(){
		var url = $("#form1").attr("action")+"?"+$("#form1").serialize();
		//$("#form1").submit();
		add_and_edit(url);
	}
</script>
<div>
	<form action="${path}/ix/mac/manage/list.htm" id="form1" method="post">
		<input type="hidden" name="bank_id" value="${bank._id}"/>
		<h2>
			<div>印控仪查询</div>
		</h2>
		<div class="query">
			<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			 	<tr>
					<td width="80" align="right">
						<strong>设备编号：</strong>
					</td>
					<td width="200" align="left">
						<input name="srh_name" type="text" value="${srh_name}" /> 
					</td>
					<td align="left">
						<a href="javascript:query();">
							<img src="${path}/style_cp/img/query.jpg" name="Image4" width="85" 
								height="27" border="0" id="Image4" /> 
						</a>
					</td>
				</tr> 
			</table>
		</div>
		<table width="100%" class="listlindex">
			<tr>
				<th>设备编号</th>
				<th>设备mac地址</th>
				<th>录入人员</th>
				<th>录入机构</th>
				<th>录入时间</th>
				<th>设备状态</th>
			</tr>
			<c:if test="${fn:length(macList)==0}">
				<tr>
					<td colspan="6"><div class="tip_div">暂无记录.</div></td>
				</tr>
			</c:if>
			<c:forEach items="${macList}" var="v">
				<tr>
					<td>${v.code}</td>
					<td>${v.mac}</td>
					<td>${v.uname}</td>
					<td>${v.bname}[${v.bcode}]</td>
					<td>
						<fmt:formatDate value="${v.created}" pattern="yyyy-MM-dd HH:mm" />
					</td>
					<td>${v.flag}${v.flag_stop}</td>
				</tr>
			</c:forEach>
			<c:if test="${fn:length(macList)!=0}">
				<tr>
					<td colspan="6">
						<page:page page="${page}" is_ajax="true" ajax_id="add_edit_form" />
					</td>
				</tr>
			</c:if>
		</table>
		<div id="response"></div>
	</form>
</div>

